<!-- *** CUT top -->

<table width="800"  border="0" cellspacing="0" cellpadding="0" class="form" id="user_top_table">
  <tr>
    <td align="left">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            <div class="form_title">Admin user</div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <!-- If you don't want notes erase this START -->
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_note">
        <!-- Repeat this fo additional notes START -->
        <tr>
          <td valign="top" align="left">
            <table width="100%"  border="0" cellspacing="0" cellpadding="4" class="form_note_title">
              <tr>
                <td><img src="img/modules/form_html_tpl_static_ajax_metallic/exclamation_mark.png" border="0" alt="icon exclamation mark"  width="16" height="16" /></td>
                <td width="100%" align="left">Note:</td>
              </tr>
            </table>
          </td>
          <td align="left" width="99%">
            <div class="form_note_text">Fields marked with &quot;*&quot; are mandatory.</div>
          </td>
        </tr>
        <!-- Repeat this fo additional notes END-->
      </table>
    </td>
  </tr>
  <!-- If you don't want notes erase this END -->
  <tr>
    <td>
      <div id="user">
        <form onsubmit="submit_ajax_user(); return false;" action="admin/user/user_edit.php" method="post" name="user_form" enctype="application/x-www-form-urlencoded">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left">
                <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="form_row">
                  <tr>
                    <td class="form_even_row">
                      <!-- form_field_text user_username START-->
                      <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                        <tr>
                          <td width="180">
                            <div align="right">Username*:</div>
                          </td>
                          <td width="1%">
                            <input class="form" name="user_username" type="text" value="{$user_username_val}" maxlength="50" size="40" id="user_username"/>
                          </td>
                          <td>&nbsp;</td>
                        </tr>
                        {if $user_username_has_error}
                        <!-- Potential errors START -->
                        {if $user_username_error_mandatory_missing}
                        <!-- mandatory_missing START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Field is mandatory.</div>
                          </td>
                        </tr>
                        <!-- mandatory_missing END -->
                        {/if}
                        {if $user_username_error_max_length_exceeded}
                        <!-- max_length_exceeded START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Allowed maximum of 50 characters exceeded.</div>
                          </td>
                        </tr>
                        <!-- max_length_exceeded END -->
                        {/if}
                        {if $user_username_error_username_taken}
                        <!-- username_taken START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Username "{$username}" is already taken. Please choose another one.</div>
                          </td>
                        </tr>
                        <!-- username_taken END -->
                        {/if}
                        {if $user_username_error_invalid_username}
                        <!-- invalid_username START -->
                        <tr>
                            <td></td>
                            <td colspan="2">
                                <div class="form_error_message">Error: Invalid username. Must be alphanumeric, starting with letter, underscore allowed.</div>
                            </td>
                        </tr>
                        <!-- invalid_username END -->
                        {/if}                        
                        <!-- Potential errors END -->
                        {/if}
                      </table>
                      <!-- form_field_text user_username END-->
                    </td>
                  </tr>
                  <tr>
                    <td class="form_odd_row">
                      <!-- form_field_text user_password START-->
                      <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                        <tr>
                          <td width="180">
                            <div align="right">Password*:</div>
                          </td>
                          <td width="1%">
                            <input class="form" name="user_password" type="password" value="{$user_password_val}" maxlength="50" size="40" id="user_password" />
                          </td>
                          <td>Minimum password lenght is 5 characters.</td>
                        </tr>
                        {if $user_password_has_error}
                        <!-- Potential errors START -->
                        {if $user_password_error_mandatory_missing}
                        <!-- mandatory_missing START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Field is mandatory.</div>
                          </td>
                        </tr>
                        <!-- mandatory_missing END -->
                        {/if}
                        {if $user_password_error_max_length_exceeded}
                        <!-- max_length_exceeded START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Allowed maximum of 50 characters exceeded.</div>
                          </td>
                        </tr>
                        <!-- max_length_exceeded END -->
                        {/if}
                        {if $user_password_error_password_asterisk_used}
                        <!-- password_asterisk_used START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Asterisk "*" simbol is not allowed.</div>
                          </td>
                        </tr>
                        <!-- password_asterisk_used END -->
                        {/if}
                        <!-- Potential errors END -->
                        {/if}
                      </table>
                      <!-- form_field_text user_password END-->
                    </td>
                  </tr>
                  <tr>
                    <td class="form_even_row">
                      <!-- form_field_text user_password2 START-->
                      <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                        <tr>
                          <td width="180">
                            <div align="right">Password again*:</div>
                          </td>
                          <td width="1%">
                            <input class="form" name="user_password2" type="password" value="{$user_password2_val}" maxlength="50" size="40" id="user_password2" />
                          </td>
                          <td>&nbsp;</td>
                        </tr>
                        {if $user_password2_has_error}
                        <!-- Potential errors START -->
                        {if $user_password2_error_mandatory_missing}
                        <!-- mandatory_missing START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Field is mandatory.</div>
                          </td>
                        </tr>
                        <!-- mandatory_missing END -->
                        {/if}
                        {if $user_password2_error_max_length_exceeded}
                        <!-- max_length_exceeded START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Allowed maximum of 50 characters exceeded.</div>
                          </td>
                        </tr>
                        <!-- max_length_exceeded END -->
                        {/if}
                        {if $user_password2_error_password_asterisk_used}
                        <!-- password_asterisk_used START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Asterisk "*" simbol is not allowed.</div>
                          </td>
                        </tr>
                        <!-- password_asterisk_used END -->
                        {/if}
                        {if $user_password2_error_passwords_not_match}
                        <!-- passwords_not_match START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Passwords don't match.</div>
                          </td>
                        </tr>
                        <!-- passwords_not_match END -->
                        {/if}
                        {if $user_password2_error_weak_password}
                        <!-- weak_password START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Entered password is too short. Please choose password 5 characters or longer.</div>
                          </td>
                        </tr>
                        <!-- weak_password END -->
                        {/if}
                        <!-- Potential errors END -->
                        {/if}
                      </table>
                      <!-- form_field_text user_password2 END-->
                    </td>
                  </tr>
                  <tr>
                    <td class="form_odd_row">
                      <!-- form_field_checkboxuser_disabled START-->
                      <table width="100%" border="0" cellpadding="3" cellspacing="0" class="form_row">
                        <tr>
                          <td width="180">
                            <div align="right">Disabled?:</div>
                          </td>
                          <td width="1%">
                            <input class="form" name="user_disabled" type="checkbox" value="{$user_disabled_val}"{if $user_disabled_checked} checked{/if} id="user_disabled" />
                          </td>
                          <td>&nbsp;</td>
                        </tr>
                        {if $user_disabled_has_error}
                        <!-- Potential errors START -->
                        {if $user_disabled_error_mandatory_missing}
                        <!-- mandatory_missing START -->
                        <tr>
                          <td></td>
                          <td colspan="2">
                            <div class="form_error_message">Error: Field is mandatory.</div>
                          </td>
                        </tr>
                        <!-- mandatory_missing END -->
                        {/if}
                        <!-- Potential errors END -->
                        {/if}
                      </table>
                      <!-- form_field_checkbox user_disabled END-->
                    </td>
                  </tr>
                </table>
                <input type="hidden" name="user_form_id" value="{$user_form_id_val}" id="user_form_id"/>
                <input type="hidden" name="user_guard_value" value="{$user_guard_value_val}" id="user_guard_value"/>
              </td>
            </tr>
            <tr>
              <td align="left">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="submit_row">
                  <tr>
                    <td width="180">&nbsp;</td>
                    <td width="100" align="left">
                      <input name="user_submit" type="submit" value="Save" class="form_submit" />
                    </td>
                    <td width="50">&nbsp;</td>
                    <td>
                      <div class="form_cancel"><a href="/admin/user/users.php">Cancel</a></div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </form>
      </div>
    </td>
  </tr>
</table>
<!-- *** CUT bottom -->
